import 'package:flutter/material.dart';
import 'package:hx_im_plugin_example/hq_im_ui/pages/chat/hq_chat_items/hq_chat_order_bubble.dart';
import 'package:hx_im_plugin_example/hq_im_ui/widgets/hq_common_widgets.dart';

class HQChatQuickMenuBar extends StatelessWidget {

  List<Widget> _items = [
    HQCircleButtonWidget(widget: Text('查看全部订单', style: TextStyle(fontSize: sFontSize(14)),), onTap: (){ HqOrderButtonCallback(HqOrderButtonType.GetAllOrder); }),
    HQCircleButtonWidget(widget: Text('查看全部车辆', style: TextStyle(fontSize: sFontSize(14)),), onTap: (){ HqOrderButtonCallback(HqOrderButtonType.GetAllCar); }),
    HQCircleButtonWidget(widget: Text('联系客服', style: TextStyle(fontSize: sFontSize(14)),), onTap: (){ HqOrderButtonCallback(HqOrderButtonType.ContactCustomer); }),
  ];

  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      padding: EdgeInsets.only(bottom: sHeight(6)),
      color: const Color.fromRGBO(242, 242, 242, 1.0),
      child: SingleChildScrollView(
        scrollDirection: Axis.horizontal,
        child: Row(
          children: _items,
        ),
      ),
    );
  }
}
